{% extends "base.html" %}
{% block header %}
{% endblock %}

{% block menu %}
   {% include 'report-menu.html' %}
{% endblock %}


{% block content %}
<div id="mon-tit">
    <div class="left">暴风服务报表 >> 监控报表修改</div>
</div>
    <div class="clr"></div>
    <hr>
    <h3 class='tit'>修改报表</h3>
    <table>
    {% if messages %}
        <ul>
            {% for message in messages %}
            <li>{{ message }}</li>
            {% endfor %}
        </ul>
    {% endif %}
		<form method="post" action="/report/modifyrep/" >
			<input type="hidden" value="{{list.id}}" name="id">
			报表名称：&nbsp;&nbsp;<input type="text" name="rname" value="{{list.rname}}">&nbsp;&nbsp;&nbsp;&nbsp;[给自定义报告起一个方便识别的名称，比如：站点每日报告]</br></br>
			数据来源：&nbsp;&nbsp;<input type="text" name="source" value="{{list.source}}">&nbsp;&nbsp;&nbsp;&nbsp;[请填入数据的来源]</br></br>
			监控名称：&nbsp;
			<select name="mid" >
			<option value ="{{list.mid.id}}">{{ list.mid.name }}</option>
			{% for l in list1 %}
			<option value ="{{l.id}}" >&nbsp;&nbsp;{{l.mname}}&nbsp;&nbsp;</option>
			{% endfor %}
			</select>
			&nbsp;&nbsp;&nbsp;&nbsp;[选择你要监控的服务]</br></br>
			发送周期：&nbsp;&nbsp;<input name="freq" type="radio" value="0"  />&nbsp;&nbsp;每日&nbsp;&nbsp;
							<input name="freq" type="radio" value="1"  />&nbsp;&nbsp;每周&nbsp;&nbsp;
							<input name="freq" type="radio" value="2"  />&nbsp;&nbsp;每月</br></br>
			报告类型：&nbsp;&nbsp;<input type="radio" name="type" value="0" checked="checked">&nbsp;&nbsp;自动导入
					&nbsp;&nbsp;<input type="radio" name="type" value="1">&nbsp;&nbsp;手动生成&nbsp;&nbsp;&nbsp;&nbsp;[ 数据的生成类型 ]</br></br>
			订 阅 人：&nbsp;&nbsp;&nbsp;
			{% for l in list2 %}
			{{ forloop.counter }}:
			<input name="user" type="checkbox" value="{{l.user_id}}"/>&nbsp;&nbsp;{{ l.user }}
			{% endfor %}
			&nbsp;&nbsp;&nbsp;&nbsp;[选择接收此报表的人员]</br></br>
			<input type="submit" value="提交报表">
		</form>
    {% if errors %}
        <ul>
            {% for error in errors %}
            <li>{{ error }}</li>
            {% endfor %}
        </ul>
    {% endif %}
   </table>
{% endblock %}
